package com.lilicould.entity;

import java.util.Date;

public class Account {
    private Integer accountId;          // 账号ID
    private String username;            // 登录账号
    private String password;            // 加密后的密码(BCrypt)
    private String accountType;         // 账号类型(employee/tenant/admin)
    private String userId;              // 关联业务表ID
    private Byte status;                // 账号状态(1=启用,0=禁用)

    public Account(Integer accountId, String username, String password, String accountType, String userId, Byte status) {
        this.accountId = accountId;
        this.username = username;
        this.password = password;
        this.accountType = accountType;
        this.userId = userId;
        this.status = status;
    }

    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAccountType() {
        return accountType;
    }

    public void setAccountType(String accountType) {
        this.accountType = accountType;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Account{" +
                "accountId=" + accountId +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", accountType='" + accountType + '\'' +
                ", userId='" + userId + '\'' +
                ", status=" + status +
                '}';
    }
}
